﻿using System;
using System.Linq.Expressions;

namespace CPN.PJN.Silverlight.Extensions.Validation
{
    internal interface IValidationRule<T> : IValidationRule
    {
        Expression<Func<T>> PropertyExpression { get; set; }

        IValidator<T> Validator { get; set; }
    }

    internal interface IValidationRule
    {
        bool Validate();

        string ErrorMessage { get; set; }
    }
}
